TEMPLATE = lib
CONFIG += staticlib
TARGET = pvm

contains(MEEGO_EDITION,harmattan) {
    DEFINES += MEEGO_EDITION_HARMATTAN PVM_STATICLIB PVM_USE_TREMOR PVM_USE_POSIX
}

symbian {
    DEFINES += PVM_STATICLIB PVM_USE_TREMOR
}

INCLUDEPATH += ../src \
               ../src/pvm \
               ../../ogg/include \
               ../../Tremor/include \
               ../../speex/include

contains(MEEGO_EDITION,harmattan) {
    SOURCES += ../src/lib/sys/posix/pvmstrings.cpp \
               ../src/lib/sys/posix/pvmsystem.cpp \
               ../src/lib/drivers/pvmdriver_pulse.cpp
}

symbian {
    SOURCES += ../src/lib/sys/symbian/pvmstrings.cpp \
               ../src/lib/sys/symbian/pvmsystem.cpp \
               ../src/lib/drivers/pvmdriver_symbian_aos.cpp
}

SOURCES += ../src/lib/pvmcommon.cpp \
           ../src/lib/pvmdriver.cpp \
           ../src/lib/pvmlib.cpp

SOURCES += ../src/lib/3d/Fixed.cpp \
           ../src/lib/3d/pvm3dsoftware_float.cpp \
           ../src/lib/3d/XMath.cpp

SOURCES += ../src/lib/drivers/pvmdriver_rawwriter.cpp \           
           ../src/lib/drivers/pvmdriver_softmix.cpp

SOURCES += ../src/lib/helpers/pvmhelpers.cpp \
           ../src/lib/helpers/pvminstreamhelpers.cpp \
           ../src/lib/helpers/pvmoutstreamhelpers.cpp

SOURCES += ../src/lib/decoders/mod/pvmsourcefactorymod.cpp \
           ../src/lib/decoders/mod/pvmvoicemod.cpp \
           ../src/lib/decoders/mod/pvmvoicesourcemod.cpp

SOURCES += ../src/lib/decoders/oggvorbis/pvmovdatasource.cpp \
           ../src/lib/decoders/oggvorbis/pvmsourcefactoryoggvorbis.cpp \
           ../src/lib/decoders/oggvorbis/pvmvoiceoggvorbis.cpp \
           ../src/lib/decoders/oggvorbis/pvmvoicesourceoggvorbis.cpp

SOURCES += ../src/lib/softwaremixer/pvmresamplerint.cpp \
           ../src/lib/softwaremixer/pvmsoftmixerfastint.cpp

SOURCES += ../src/lib/decoders/wav/pvmdatasourcewav.cpp \
           ../src/lib/decoders/wav/pvmsourcefactorywav.cpp \
           ../src/lib/decoders/wav/pvmvoicesourcewav.cpp \
           ../src/lib/decoders/wav/pvmvoicewav.cpp

SOURCES += ../src/lib/decoders/speex/pvmsourcefactoryspeex.cpp \
           ../src/lib/decoders/speex/pvmvoicesourcespeex.cpp \
           ../src/lib/decoders/speex/pvmvoicespeex.cpp

include(../../qt/libcommon.pri)
